package cn.edu.scau.cmi.youbaiquan.abstractFactory.factory;

import cn.edu.scau.cmi.youbaiquan.abstractFactory.domain.PingAnAccidentsInsurance;
import cn.edu.scau.cmi.youbaiquan.abstractFactory.domain.PingAnBodyInjureInsurance;
import cn.edu.scau.cmi.youbaiquan.abstractFactory.domain.PingAnCarDamageInsurance;
import cn.edu.scau.cmi.youbaiquan.abstractFactory.domain.PingAnCasualtiesInsurance;
import cn.edu.scau.cmi.youbaiquan.abstractFactory.domainAbstractClass.AbstractInsurance;

public class PingAnFactory extends AbstractInsuranceFactory {
    @Override
    public AbstractInsurance getAccidentsInsurance() {
        return new PingAnAccidentsInsurance();
    }

    @Override
    public AbstractInsurance getBodyInjureInsurance() {
        return new PingAnBodyInjureInsurance();
    }

    @Override
    public AbstractInsurance getCarDamageInsurance() {
        return new PingAnCarDamageInsurance();
    }

    @Override
    public AbstractInsurance getCasualtiesInsurance() {
        return new PingAnCasualtiesInsurance();
    }
}
